import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {App} from "vue";

// 按需加载（有点麻烦，先不用了）
const useSvg = [
    "Document", "Location", "Setting",
]

// 安装全局ICON
// https://element-plus.org/zh-CN/component/icon.html
export function installElSvg(app: App) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        // if (useSvg.includes(key)) {
        app.component(key, component)
        // }
        // ////// console.log(key)
    }
}


